<#list columns as column>
    <#if column.formShow == true><#switch column.ctrlType>
        <#case "text">
        <div class="form-group">
            <label class="control-label col-sm-3">${column.comment}</label>
            <div class="col-sm-6">
                <input class="form-control" type="text" id="${column.javaPropertyName}" name="${column.javaPropertyName}" <#include "validate.ftl"/>/>
            </div>
            <div class="help-block with-errors col-sm-3"></div>
        </div>
            <#break/>
        <#case "datetime">
        <div class="form-group">
            <label class="control-label col-sm-3">${column.comment}</label>
            <div class="col-sm-6">
                <div class="input-group date form_date">
                    <input class="form-control" size="16" type="text" id="${column.javaPropertyName}" name="${column.javaPropertyName}" readonly <#include "validate.ftl"/>/>
                    <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                    <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                </div>
            </div>
            <div class="help-block with-errors col-sm-3"></div>
        </div>
            <#break/>
        <#case "password">
        <div class="form-group">
            <label class="control-label col-sm-3">${column.comment}</label>
            <div class="col-sm-6">
                <input class="form-control" type="password" id="${column.javaPropertyName}" name="${column.javaPropertyName}" <#include "validate.ftl"/>/>
            </div>
            <div class="help-block with-errors col-sm-3"></div>
        </div>
            <#break/>
        <#case "select">
        <#case "radio">
        <div class="form-group">
            <label class="control-label col-sm-3">${column.comment}</label>
            <div class="col-sm-6">
                <#if column.link?? && column.link != ''>
                    <#noparse><@selectDirective</#noparse> link="${column.link}" default="${column._default}" name="${column.javaPropertyName}" type="${column.ctrlType}" required="${column.nullable?then("true", "false")}"/>
                <#else>
                    <select class="form-control" id="${column.javaPropertyName}" name="${column.javaPropertyName}">
                    </select>
                </#if>
            </div>
            <div class="help-block with-errors col-sm-3"></div>
        </div>
            <#break/>
        <#case "image">
        <div class="form-group">
            <label class="control-label col-sm-3">${column.comment}</label>
            <div class="col-sm-6">
                <input type="file" id="${column.javaPropertyName}" name="${column.javaPropertyName}" data-inputFileType="image"/>
            </div>
            <div class="help-block with-errors col-sm-3"></div>
        </div>
            <#break/>
        <#case "file">
        <div class="form-group">
            <label class="control-label col-sm-3">${column.comment}</label>
            <div class="col-sm-6">
                <input type="file" id="${column.javaPropertyName}" name="${column.javaPropertyName}" data-inputFileType="file"/>
            </div>
            <div class="help-block with-errors col-sm-3"></div>
        </div>
            <#break/>
        <#case "textarea">
        <div class="form-group">
            <label class="control-label col-sm-3">${column.comment}</label>
            <div class="col-sm-6">
                <textarea class="form-control" id="${column.javaPropertyName}" name="${column.javaPropertyName}" <#include "validate.ftl"/>></textarea>
            </div>
            <div class="help-block with-errors col-sm-3"></div>
        </div>
            <#break/>
        <#case "ckeditor">
        <div class="form-group">
            <label class="control-label col-sm-3">${column.comment}</label>
            <div class="col-sm-6">
                <div id="${column.javaPropertyName}" name="${column.javaPropertyName}" data-ckeditor="true"></div>
            </div>
            <div class="help-block with-errors col-sm-3"></div>
        </div>
            <#break/>
    </#switch>
    <#else>
    <input type="hidden" id="${column.javaPropertyName}" name="${column.javaPropertyName}"/>
    </#if>
</#list>


